package com.chen.blue.container;

/**
 * Created By CLT On 2024/5/12.
 */
@SuppressWarnings("all")
public class PermissionFlag {

    private static final ThreadLocal<Boolean> threadLocal = ThreadLocal.withInitial(() -> false);

    public static void set(Boolean flag) {
        threadLocal.set(flag);
    }

    public static boolean get() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }

}
